package com.guit.hrms.service;

import com.guit.hrms.po.Announcement;

import java.util.List;

public interface AnnouncementService {
    /**
     * 保存公告
     * @param announcement
     */
    Integer saveAnnouncements(Announcement announcement);

    /**
     * 查看部门公告
     *
     * @param deptId
     * @param deptType
     */
    List<Announcement> viewAnnouncements(Integer deptId, Integer deptType);

    /**
     * 更新公告
     *
     * @param announcement
     * @return
     */
    Integer updateAnnouncements(Announcement announcement);

    /**
     * 删除公告
     *
     * @param ids
     * @return
     */
    Integer deleteAnnouncements(List<Integer> ids);
}
